home *** CD-ROM | disk | FTP | other *** search
- Path: comma.rhein.de!yaps!arno
- From: arno@yaps.rhein.de (Arno Eigenwillig)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Problem executing programs from WB
- Message-ID: <2sP1y*kJf@yaps.rhein.de>
- Date: Sat, 03 Feb 1996 14:49:38 +0100
- References: <4etu0m$iq0@mn5.swip.net>
- Organization: Yet Another Private Site in Meckenheim, Germany
- X-Copyright: This article may not be distributed on a CD-ROM
- or in printed form without prior written consent of the author.
- X-Newsreader: Arn V 1.04
-
- In article <4etu0m$iq0@mn5.swip.net>, Ola Lindgren writes:
-
- > Starting the program from the Workbench is ok,
- > but when I exit it I get the message "Software Failure error #87000004".
- > This only happens when I start the program from the WB with my own icon.
-
- You do not properly fetch and reply the WB Startup message. In your
- startup code, detect whether your program has been launched from WB
- (pr_CLI == 0). If yes, wait for a message to be sent to your pr_Msg-
- Port. GetMsg() it and save its address. Immediately before doing the
- final RTS, Forbid() and ReplyMsg() it.
-
- Details and reasons are given in the RKM Libraries, p.364ff.
-
- -- __
- __/// Arno Eigenwillig /\ <arno@yaps.rhein.de> \/ PGP key available.
- \XX/ V+49-2225-5870 /\ <Arnooo @ #amigager> \/ MIME 8bit welcome.
-